package com.metacube.questionbank.model;

import java.sql.Date;
import java.sql.Timestamp;

/*
 * @author Team Neeraj Jain
 * */
public class Question {
	private int quesId;
	private String questionTitle;
	private String questionDesc;
	private int userId;
	private Timestamp questionDate;
	private Date closingDate;
	private Boolean closingStatus;

	/*
	 * Parameterized constructor of class.
	 */
	public Question(int quesId, String questionTitle, String questionDesc,
			int userId, Timestamp questionDate, Date closingDate,
			Boolean closingStatus) {
		super();
		this.quesId = quesId;
		this.questionTitle = questionTitle;
		this.questionDesc = questionDesc;
		this.userId = userId;
		this.questionDate = questionDate;
		this.closingDate = closingDate;
		this.closingStatus = closingStatus;
	}

	/*
	 * Default constructor of class
	 */
	public Question() {

	}

	/*
	 * This method returns status of question,that is ,whether it is open for
	 * answers.
	 * 
	 * @return closingStatus status of question
	 */
	public Boolean getClosingStatus() {
		return closingStatus;
	}

	/*
	 * @param closingStatus status of question This method sets status of
	 * question,that is ,whether it is open for answers.
	 */
	public void setClosingStatus(Boolean closingStatus) {
		this.closingStatus = closingStatus;
	}

	/*
	 * This method returns id of question
	 * 
	 * @return quesId id of question
	 */
	public int getQuesId() {
		return quesId;
	}

	/*
	 * @param quesId id of question This method sets id of question.
	 */
	public void setQuesId(int quesId) {
		this.quesId = quesId;
	}

	/*
	 * This method returns the title of question.
	 * 
	 * @return questionTitle title of question.
	 */
	public String getQuestionTitle() {
		return questionTitle;
	}

	/*
	 * @param questionTitle title of question. This method sets the title of
	 * question.
	 */
	public void setQuestionTitle(String questionTitle) {
		this.questionTitle = questionTitle;
	}

	/*
	 * This method returns the description of question.
	 * 
	 * @return questionDesc description of question
	 */
	public String getQuestionDesc() {
		return questionDesc;
	}

	/*
	 * @param questionDesc description of question This method sets the
	 * description of question.
	 */
	public void setQuestionDesc(String questionDesc) {
		this.questionDesc = questionDesc;
	}

	/*
	 * This method returns the id of user who posted the question.
	 * 
	 * @return userId id of user
	 */
	public int getUserId() {
		return userId;
	}

	/*
	 * @param userId id of user This method sets the id of user who posted the
	 * question.
	 */

	public void setUserId(int userId) {
		this.userId = userId;
	}

	/*
	 * This method returns the timestamp of question.
	 * 
	 * @return questionDate time when the question was posted
	 */
	public Timestamp getQuestionDate() {
		return questionDate;
	}

	/*
	 * @param questionDate time when the question was posted This method sets
	 * the timestamp of question.
	 */
	public void setQuestionDate(Timestamp questionDate) {
		this.questionDate = questionDate;
	}

	/*
	 * This method returns the closing date of question
	 * 
	 * @return closingDate closing date of question.
	 */
	public Date getClosingDate() {
		return closingDate;
	}

	/*
	 * @param closingDate closing date of question. This method sets the closing
	 * date of question
	 */
	public void setClosingDate(Date closingDate) {
		this.closingDate = closingDate;
	}
}
